//
//  HomeCATableViewCell.m
//  喜马拉雅首页
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 刘倩男. All rights reserved.
//

#import "HomeCATableViewCell.h"

@interface HomeCATableViewCell ()
@property (nonatomic, retain) UIImageView *headImageView;
@property (nonatomic, retain) UILabel *titleLabel;
@property (nonatomic, retain) UILabel *subHeadLabel;
@end
@implementation HomeCATableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews{
    
    self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 75, 75)];
    self.headImageView.image = [UIImage imageNamed:@"123.png"];
    [self.contentView addSubview:self.headImageView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(120, 10, 100, 50)];
    self.titleLabel.text = @"听友圈子";
    [self.contentView addSubview:self.titleLabel];
    
    self.subHeadLabel = [[UILabel alloc] initWithFrame:CGRectMake(120, 40, 200, 50)];
    self.subHeadLabel.text = @"寻喜马拉雅最奇葩声音";
    self.subHeadLabel.font = [UIFont systemFontOfSize:14];
    self.subHeadLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.subHeadLabel];
}
@end
